package com.xinqi.modules.sys.stats.manager;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.sys.stats.domain.HomePageDayStEntity;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 首页每天数据统计管理层
 *
 * @author: linkai
 * @date: 2023/04/25
 */
public interface HomePageDayStManager extends BaseService<HomePageDayStEntity> {

    HomePageDayStEntity findByStatsDate(LocalDate statsDate);

    Integer findAddedUserNum(LocalDateTime startTime, LocalDateTime endTime);

    Integer findLoggedUserTotal();

    Integer findUserTotal();

    Integer findAddedCourseNum(LocalDateTime startTime, LocalDateTime endTime);

    Integer findCourseTotal();

    Integer findAddedClassNum(LocalDateTime startTime, LocalDateTime endTime);

    Integer findClassTotal();

    Integer findCourseAttendance(LocalDateTime startTime, LocalDateTime endTime);

    Integer findCourseNotice(LocalDateTime startTime, LocalDateTime endTime);

    Integer findCourseDiscuss(LocalDateTime startTime, LocalDateTime endTime);

    Integer findCourseExam(LocalDateTime startTime, LocalDateTime endTime);

    Integer findCourseHomework(LocalDateTime startTime, LocalDateTime endTime);
}
